﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.SimpleFlow
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.SimpleFlow;

    public class map_ApprovalAttachment : EntityMapping<ApprovalAttachment>
    {
        public map_ApprovalAttachment()
        {
            Property(x => x.AttachmentName, map =>
            {
                map.Length(500);
            });

            ManyToOne(x => x.Record, map =>
            {
                map.Column("RecordID");
            });

            Property(x => x.AttachmentData, map =>
            {
            });
        }
    }
}
